package com.drore.www.logbeansecret;

/**
 * desc
 *
 * @author sixbing
 * @date 2018/12/13 09:59
 */

public class Test {
    public static void main(String[] args) {
        String content = "美女，约吗？";
        String password = "0123456789012345";

        System.out.println("\n加密前：" + content);
        System.out.println("加密密钥和解密密钥：" + password);
        String encrypt3 = AesUtil.encrypt(content, password,password);
        System.out.println("加密后：" + encrypt3);
        String decrypt3 =  AesUtil.getInstance().decrypt(encrypt3, password,password);
        System.out.println("解密后：" + decrypt3);
    }
}
